import Header from "./components/Plugin.vue"
const myPlugin={
	install(app,options){
		app.config.globalProperties.globalMethod=(value)=>{
			return value.toLowerCase()
		}
		app.component("Header",Header)
		app.directive("upper",(el,binding)=>{
			el.textContent=binding.value.toUpperCase()
			if(binding.arg==="small"){
				el.style.fontSize=options.small+"px"
			}else if(binding.arg==="medium"){
				el.style.fontSize=options.medium+'px'
			}else{
				el.style.fontSize=options.large+"px"
			}
		})
	}
}
export default myPlugin